package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysGoodsMapper;
import com.ruoyi.system.domain.SysGoods;
import com.ruoyi.system.service.ISysGoodsService;

/**
 * 货品信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SysGoodsServiceImpl implements ISysGoodsService 
{
    @Autowired
    private SysGoodsMapper sysGoodsMapper;

    /**
     * 查询货品信息
     * 
     * @param id 货品信息主键
     * @return 货品信息
     */
    @Override
    public SysGoods selectSysGoodsById(Long id)
    {
        return sysGoodsMapper.selectSysGoodsById(id);
    }

    /**
     * 查询货品信息列表
     * 
     * @param sysGoods 货品信息
     * @return 货品信息
     */
    @Override
    public List<SysGoods> selectSysGoodsList(SysGoods sysGoods)
    {
        return sysGoodsMapper.selectSysGoodsList(sysGoods);
    }

    /**
     * 新增货品信息
     * 
     * @param sysGoods 货品信息
     * @return 结果
     */
    @Override
    public int insertSysGoods(SysGoods sysGoods)
    {
        return sysGoodsMapper.insertSysGoods(sysGoods);
    }

    /**
     * 修改货品信息
     * 
     * @param sysGoods 货品信息
     * @return 结果
     */
    @Override
    public int updateSysGoods(SysGoods sysGoods)
    {
        return sysGoodsMapper.updateSysGoods(sysGoods);
    }

    /**
     * 批量删除货品信息
     * 
     * @param ids 需要删除的货品信息主键
     * @return 结果
     */
    @Override
    public int deleteSysGoodsByIds(Long[] ids)
    {
        return sysGoodsMapper.deleteSysGoodsByIds(ids);
    }

    /**
     * 删除货品信息信息
     * 
     * @param id 货品信息主键
     * @return 结果
     */
    @Override
    public int deleteSysGoodsById(Long id)
    {
        return sysGoodsMapper.deleteSysGoodsById(id);
    }
}
